
<?php

        $status = $physical_qty->getIspublish()?  $physical_qty->getIspublish()  : 0;
?>
<td>
<ul class="sf_admin_td_actions">
  <li><?php echo link_to(image_tag('/sf/sf_admin/images/delete_icon.png', array('alt' => __('delete'), 'title' => __('delete'))), 'physicalqty/delete?id='.$physical_qty->getId(), array (
  'post' => true,
  'confirm' => __('Are you sure you want to delete?'),
)) ?></li>


<li>
  <?php
        if ($status==1) {
            echo image_tag('/sf/sf_admin/images/completed_icon.png', array('alt' => __('published'), 'title' => __('published')));
        } else {
            echo link_to(image_tag('/sf/sf_admin/images/publish_icon.png', array('alt' =>'publish', 'title' => 'publish')), 'physicalqty/publish?id='.$physical_qty->getId(), array (
  'post' => true,
  'confirm' => __('Are you sure you want to publish?'),));
        }
    ?>
    </li>

</ul>
</td>
